﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="XemCTGD.ascx.cs" Inherits="Admin_Parts_XemCTGD" %>

<asp:Panel ID="Panel1" runat="server">
    <center>
    <asp:Label ID="Label1" runat="server" Text="Xem Chi Tiết Giao Dịch" 
        Font-Bold="True" Font-Size="18pt"></asp:Label>

    <br />

        <%--<asp:Label ID="Label2" runat="server" Text="Chọn tình trạng nhận hàng"></asp:Label>
        &nbsp;&nbsp;&nbsp;
        <asp:DropDownList ID="DropDownList1" runat="server" Height="21px" Width="147px">
            <asp:ListItem Value="0">Hàng chưa tới</asp:ListItem>
            <asp:ListItem Value="1">Hàng đã về kho</asp:ListItem>
            <asp:ListItem Value="2">Trục trặc khi vận chuyển </asp:ListItem>
        </asp:DropDownList>--%>

        <br />
        <br />

    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        BackColor="White" BorderColor="#999999" BorderWidth="1px" 
        CellPadding="3" ForeColor="Black" GridLines="Vertical" AllowPaging="True" 
            AllowSorting="True" AutoGenerateEditButton="True" 
            onpageindexchanging="GridView1_PageIndexChanging" 
            onrowcancelingedit="GridView1_RowCancelingEdit" 
            onrowediting="GridView1_RowEditing" onrowupdating="GridView1_RowUpdating" 
            BorderStyle="Solid">
        <Columns>
            <asp:BoundField DataField="TransID" HeaderText="Trans ID" 
                SortExpression="TransID" ReadOnly="True" />
            <asp:BoundField DataField="SessionID" HeaderText="Session ID" 
                SortExpression="SessionID" ReadOnly="True" />
            <asp:BoundField DataField="ProductID" HeaderText="Product ID" 
                SortExpression="ProductID" ReadOnly="True" />
            <asp:BoundField DataField="AddedDate" HeaderText="Added Date" 
                SortExpression="AddedDate" ReadOnly="True" />
            <asp:BoundField DataField="AddedQuantity" HeaderText="Added Quantity" 
                SortExpression="AddedQuantity" ReadOnly="True" />
            <asp:BoundField DataField="PricePerUnit" HeaderText="Price Per Unit" 
                SortExpression="PricePerUnit" ReadOnly="True" />
            <asp:BoundField DataField="TransportPrice" HeaderText="Transport Price" 
                SortExpression="TransportPrice" ReadOnly="True" />
            <asp:BoundField DataField="TotalPrice" HeaderText="Total Price" 
                SortExpression="TotalPrice" ReadOnly="True" />
            <asp:HyperLinkField DataNavigateUrlFields="LinkTransport" 
                HeaderText="Link Transport" Text="Link Transport"/>
            <asp:TemplateField HeaderText="State" SortExpression="State">
                <EditItemTemplate>
                    <asp:DropDownList ID="drl" runat="server">
                        <asp:ListItem Value="0">Đang tới</asp:ListItem>
                        <asp:ListItem Value="1">Đã tới</asp:ListItem>
                        <asp:ListItem Value="2">Trục trặc</asp:ListItem>
                    </asp:DropDownList>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:DropDownList ID="DropDownList2" runat="server" 
                        SelectedValue='<%# Bind("State") %>' Enabled="False" 
                        >
                        <asp:ListItem Value="0">Đang tới</asp:ListItem>
                        <asp:ListItem Value="1">Đã tới</asp:ListItem>
                        <asp:ListItem Value="2">Trục trặc</asp:ListItem>
                    </asp:DropDownList>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#CCCCCC" />
        <PagerStyle BackColor="#999999" ForeColor="Black" 
            HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#000099" ForeColor="White" Font-Bold="True" />
        <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="#CCCCCC" />
    </asp:GridView>

        <br />

        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
            Text="Xem tất cả các giao dịch đang vận chuyển" />
        <br />

    </center>
</asp:Panel>
<p>&nbsp;</p>